package com.zhijian.medical.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 荧光PCR-KNB实验流程进度状态枚举类
 *
 * @author HCG
 * @version 1.0
 * @date 2022/4/6
 */
@AllArgsConstructor
@Getter
public enum PcrKnbStatusEnum {

    ZB(0, "准备"),
    YBZBQ(1, "样本准备区"),
    HSZBQ(2, "核酸制备区"),
    SJPZQ(3, "试剂配置区"),
    HSKZYQ(4, "核酸扩增一区"),
    END(5, "完成");

    private Integer code;
    private String desc;

    public static PcrKnbStatusEnum getByCode(Integer code) {
        PcrKnbStatusEnum[] values = PcrKnbStatusEnum.values();
        for (PcrKnbStatusEnum anEnum : values) {
            if (anEnum.getCode().equals(code)) {
                return anEnum;
            }
        }
        return null;
    }

}
